package edu.upenn.yas;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class SampleQuery extends ActionSupport {
  
    private List<String> allUsers = null;

    // Default getter: all the work is done in getAllUsers
    public String execute() { 
        allUsers = QueryEngine.instance.getAllUsers();
        return SUCCESS;
    } 

    // Simple getter that returns a list of all the users
    public List<String> getAllUsers() {
        return allUsers;
    }
}
